redis 套件的 Property 'on' does not exist on type 'RedisClientType'


再用 typescript 開發時發現 client.on('error', (err) => console.log('Redis Client Error', err)); 會跳出錯誤 Property 'on' does not exist on type 'RedisClientType' ,加上 npm i -D @types/node 就解決了

#TypeScript #VS Code #Redis #nodejs #ts #js #Node






你可能感興趣的文章

2021動物科學系的生物資訊職涯發展

2021動物科學系的生物資訊職涯發展

[ 筆記 ] 產品需求文件(參考資料) & Final Project 構思紀錄

[ 筆記 ] 產品需求文件(參考資料) & Final Project 構思紀錄

[ Day 01 ] Python unittest 單元測試 | 專案應用分享

[ Day 01 ] Python unittest 單元測試 | 專案應用分享






留言討論